﻿using Coldairarrow.Entity.DTO;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 发货计划
    /// </summary>
    [Table("PB_DeliveryPlan")]
    public partial class PB_DeliveryPlan
    {

        /// <summary>
        /// 主键
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 组织编号
        /// </summary>
        public String DeptId { get; set; }

        /// <summary>
        /// 计划日期
        /// </summary>
        public DateTime? PlannedDate { get; set; }

        /// <summary>
        /// 截止日期
        /// </summary>
        public DateTime? Closingdate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Remarks { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 制单人(创建人)
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除状态
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public Int32? States { get; set; }

        /// <summary>
        /// 审核人id
        /// </summary>
        public String ToExamineId { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public String QrCode { get; set; }

        /// <summary>
        /// 部门id
        /// </summary>
        public String DepartmentId { get; set; }
        /// <summary>
        /// 工作流编号
        /// </summary>
        public String WorkFlow { get; set; }
        /// <summary>
        /// 是否重复播报
        /// </summary>
        public Boolean? IsRepeat { get; set; }
    }

    public class SavaDataDeliveryPlan : PB_DeliveryPlan {
        /// <summary>
        /// 子数据
        /// </summary>
        public List<PB_DeliveryPlanDetails> SubData { get; set; }
    }


    public class DeliveryPlanListInfo : PB_DeliveryPlan {

        /// <summary>
        /// 子数据
        /// </summary>
        public List<DeliveryPlanDetailsDTO> SubData { get; set; }

        /// <summary>
        /// 组织名称
        /// </summary>
        public string DeptName { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string CreatorName { get; set; }
        /// <summary>
        /// 工作流名称
        /// </summary>
        public string WorkFlowName { get; set; }
    }


    public class Base_OverFlowLogJson {

     public  List<PB_PickUpPlanList> Data { get; set; }


    }

    public class Base_OverFlowLogJsonIds  {
        public string Id { get; set; }
        public string Name { get; set; }

    }
}